//
//  ViewController.m
//  Depthmap
//
//  Created by 沙智超 on 2018/3/22.
//  Copyright © 2018年 沙智超. All rights reserved.
//

#import "ViewController.h"
#import "DepthMap.h"
@interface ViewController ()


@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor lightGrayColor];
    
    DepthMap *view =[[DepthMap alloc] initWithFrame:CGRectMake(0, 100, self.view.frame.size.width, 200)];
    
    [self.view addSubview:view];
    
    [self aaaaa];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)aaaaa{
    CGContextRef ctx = UIGraphicsGetCurrentContext();
    //颜色
    CGContextSetRGBStrokeColor(ctx, 0.2, 0.2, 0.2, 1.0);
    //画线的宽度
    CGContextSetLineWidth(ctx, 0.25);
    //顶部横线
    CGContextMoveToPoint(ctx, 0, 10);
    CGContextAddLineToPoint(ctx, self.view.frame.size.width, 10);
    CGContextStrokePath(ctx);
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
